test/vpci: add dummy cfcheck define
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 20 Oct 2022 14:36:48 +0000 (16:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 20 Oct 2022 14:36:48 +0000 (16:36 +0200)
Some vpci functions got the cfcheck attribute added, but that's not
defined in the user-space test harness, so add a dummy define in order
for the harness to build.

Fixes: 4ed7d5525f ('xen/vpci: CFI hardening')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
tools/tests/vpci/emul.h

index 2e1d3057c9d896e7ed6702fa68fe9ba922d715c1..386b15eb867d06c6dd0eec1abd0311f069118e2c 100644 (file)
@@ -37,6 +37,7 @@
 #define prefetch(x) __builtin_prefetch(x)
 #define ASSERT(x) assert(x)
 #define __must_check __attribute__((__warn_unused_result__))
+#define cf_check
 
 #include "list.h"